package com.hangjiang.gulidear.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.hangjiang.gulidear.dao.CommentDao;
import com.hangjiang.gulidear.model.Comment;
import com.hangjiang.gulidear.service.CommentService;

@Service("commentService")
public class CommentServiceImpl extends BaseServiceImpl<Comment> implements
		CommentService {
	@Resource(name = "commentDao")
	public void setDao(CommentDao commentDao) {
		super.setDao(commentDao);
	}

	@Override
	public CommentDao getDao() {
		return (CommentDao) super.getDao();
	}

	@Override
	public List<Comment> findCommentsByProjectId(String projectId) {
		
		return getDao().findCommentsByProjectId(projectId);
	}
	
}
